6248813685ef59b7dd1256fab790a3ddb901a324,subprojects/ear/src/main/groovy/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptor.java,DefaultDeploymentDescriptor,readFrom,#Reader#,264
Before Change
for (Node moduleNode : Cast.<List<Node>>uncheckedCast(child.children())) {
String moduleNodeLocalName = localNameOf(moduleNode);
if (moduleNodeLocalName.equals("web")) {
String webUri = childNodeNamed(moduleNode, "web-uri").text();
String contextRoot = childNodeNamed(moduleNode, "context-root").text();
module = new DefaultEarWebModule(webUri, contextRoot);
modules.add(module);
After Change
for (Node moduleNode : Cast.<List<Node>>uncheckedCast(child.children())) {
String moduleNodeLocalName = localNameOf(moduleNode);
if (moduleNodeLocalName.equals("web")) {
Node webUriNode = childNodeNamed(moduleNode, "web-uri");
Node contextRootNode = childNodeNamed(moduleNode, "context-root");
String webUri = webUriNode != null ? webUriNode.text() : null;
String contextRoot = contextRootNode != null ? contextRootNode.text() : null;
module = new DefaultEarWebModule(webUri, contextRoot);
modules.add(module);